package model.resource;

public class ResourceTriplet
{
	private RenewableResource food;
	private NonRenewableResource ore, energy;
	
	public ResourceTriplet(RenewableResource food,
						   NonRenewableResource ore,
						   NonRenewableResource energy)
	{
		this.food = food;
		this.ore = ore;
		this.energy = energy;
	}
	
	public int getFoodAmount()
	{
		return food.getQuantity();
	}
	
	public int getOreAmount()
	{
		return ore.getQuantity();
	}
	
	public int getEnergyAmount()
	{
		return energy.getQuantity();
	}
	
	public int harvestFood(int amount)
	{
		return food.harvest(amount);
	}
	
	public int harvestOre(int amount)
	{
		return ore.harvest(amount);
	}
	
	public int harvestEnergy(int amount)
	{
		return energy.harvest(amount);
	}
}
